package cn.edu.kzjsxy.graduationproject.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 楼栋信息表
 * </p>
 *
 * @author chén jiā jùn
 * @since 2024-04-14
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("buildings")
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="Buildings对象", description="楼栋信息表")
public class Buildings implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "楼栋ID")
    @TableId(value = "building_id", type = IdType.ASSIGN_UUID)
    private String buildingId;

    @ApiModelProperty(value = "楼栋名称")
    @TableField("building_name")
    private String buildingName;

    @ApiModelProperty(value = "宿舍类型：0是女宿舍，1是男宿舍，2是混合宿舍")
    @TableField("dormitory_type")
    private Integer dormitoryType;

    @ApiModelProperty(value = "宿管,可能会有多个宿管，使用 , 分割开")
    @TableField("housemaster_id")
    private String housemasterId;

    @ApiModelProperty(value = "宿管名字,可能会有多个宿管，使用,分割开")
    @TableField(exist = false)
    private String housemasterName;

    @ApiModelProperty(value = "联系方式")
    @TableField("contact_phone")
    private String contactPhone;

    @ApiModelProperty(value = "楼栋地址")
    @TableField("address")
    private String address;
}
